import request from '@/utils/request'

// 查询原料水检测分类列表
export function listImports(query) {
  return request({
    url: '/imports/imports/list',
    method: 'get',
    params: query
  })
}

// 查询原料水检测分类详细
export function getImports(id) {
  return request({
    url: '/imports/imports/' + id,
    method: 'get'
  })
}

// 新增原料水检测分类
export function addImports(data) {
  return request({
    url: '/imports/imports',
    method: 'post',
    data: data
  })
}

// 修改原料水检测分类
export function updateImports(data) {
  return request({
    url: '/imports/imports',
    method: 'put',
    data: data
  })
}

// 删除原料水检测分类
export function delImports(id) {
  return request({
    url: '/imports/imports/' + id,
    method: 'delete'
  })
}
